﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Text;

namespace Furesoft.Database
{
    public class Header
    {
        public static Dictionary<string, string> Parse(Stream input, out MemoryStream output)
        {
            var ret = new Dictionary<string, string>();
            MemoryStream ms = new MemoryStream();

            string tmp = Encoding.UTF8.GetString(GetStreamArray(input));
            // parse header


            output = ms;
            return ret;
        }
  
        private static byte[] GetStreamArray(Stream input)
        {
            var ms = new MemoryStream();

            input.CopyTo(ms);

            return ms.ToArray();
        }
    }
}